package com.jyx.manage_media;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient//从Eureka Server获取服务
@SpringBootApplication//扫描所在包及子包的bean，注入到ioc中
@EntityScan("com.jyx.framework.domain.media")//扫描实体类
@ComponentScan(basePackages={"com.jyx.api"})//扫描接口
@ComponentScan(basePackages={"com.jyx.framework"})//扫描framework中通用类
@ComponentScan(basePackages={"com.jyx.manage_media"})//扫描本项目下的所有类
public class ManageMediaApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManageMediaApplication.class, args);
    }
}
